package com.kgc.cgprovider.controller;

import com.kgc.cgapi.pojo.CGDDPojo;
import com.kgc.basic.util.ResponseMsg;
import com.kgc.cgapi.service.CGDDServiceApi;
import com.kgc.cgprovider.service.CGDDService;
import com.kgc.cgprovider.service.CGServ;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;
@RestController
public class CGDDController implements CGDDServiceApi {

    @Resource
    private CGServ cgServ;
    @Resource
    private CGDDService cgddServ;


    @Override
    public ResponseMsg getCGDDPage(Map<String, Object> param) {
        ResponseMsg responseMsg = cgddServ.getCGDDPage(param);
        return responseMsg;
    }

    @Override
    public ResponseMsg addCGDD(Map<String, Object> map) {
        ResponseMsg responseMsg = cgddServ.addCGDD(map);
        return responseMsg;
    }

    @Override
    public ResponseMsg getCGDD(String code) {
        ResponseMsg responseMsg = cgddServ.getCGDDByCode(code);
        return responseMsg;
    }

    @Override
    public ResponseMsg modiCGDD(Map<String, Object> map) {
        ResponseMsg responseMsg = cgddServ.modiCGDD(map);
        return responseMsg;
    }

    @Override
    public ResponseMsg passCGDD(String code) {
        ResponseMsg responseMsg = cgddServ.passCGDD(code);
        return responseMsg;
    }

    @Override
    public ResponseMsg getCGDDPageByProId(Map<String, Object> map) {
        ResponseMsg responseMsg = cgddServ.getCGDDByProId(map);
        return responseMsg;
    }

    @Override
    public ResponseMsg updateCGDDData(Map<String, Object> map) {
        ResponseMsg responseMsg = cgddServ.updateCGDDData(map);
        return responseMsg;
    }

    @Override
    public ResponseMsg getPrePayRefundAmount(Map<String, Object> map) {
        ResponseMsg responseMsg = cgddServ.getPrePayRefundAmount(map);
        return responseMsg;
    }
}
